class DefaultData < ActiveRecord::Migration
  def self.up

    # NEURONS TYPES
    NeuronType.create :name => "Language", :description => 'Neuron that store language data'
    NeuronType.create :name => "Vision", :description => 'Vision neuron'


    neuron_r = NeuronRelation.create :name => "contiene" , :relation => 'data?'
    neuron_s = Neuron.create :neuron_type_id => NeuronType.find_by_name("Language").id, :memory_type => 0, :masive => false, :data => 'data1'
    neuron_d = Neuron.create :neuron_type_id => NeuronType.find_by_name("Language").id, :memory_type => 0,:masive => false, :data => 'data1'

    Dendrite.create  :weight => 2, :neuron_relation => neuron_r, :neuron_source => neuron_s, :neuron_destiny => neuron_d
  end

  def self.down
    Dendrite.delete_all
    Neuron.delete_all
    NeuronType.delete_all
    NeuronRelation.delete_all
  end
end
